//
//  KKUserAccount.swift
//  SinaWeiBo
//
//  Created by King.Kong. on 16/5/25.
//  Copyright © 2016年 King.Kong. All rights reserved.
//

import UIKit

class KKUserAccount: NSObject {

    
    /// 用户授权的唯一票据,用户访问接口的权限的唯一标识
   var access_token:String?
    
    /// 用户token过期时间  access_token 在多少秒之后会过期
    var expires_in: NSTimeInterval = 0 {
        
        didSet {
            
          expires_date = NSDate(timeIntervalSinceNow: expires_in)
        }
        
    }
    
    /// 计算出过期日期
    var expires_date:NSDate?
    
    
    /// 用户授权的uid 标识唯一用户
    var uid:String?
   
    /// 用户头像
    var avatar_large: String?
    
    /// 用户昵称
//    var screen_name :String?
    
    /// 友好显示名称
    var name: String?
    
    init(dict:[String : AnyObject]) {
        super.init()
        
        setValuesForKeysWithDictionary(dict)
        
    }
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {
    }
    
}
